<template>
  <div>
    <h1>详情页面 编号为{{ $route.params.id }}</h1>
  </div>
</template>

<script>
export default {
    created(){
        console.log("数据加载");
    },
    watch: {
        $route(to, from) {
      // 对路由变化作出响应...
      console.log(to);
      console.log(from);
    }
  }

}
</script>

<style>

</style>